#include<bits/stdc++.h>
using namespace std;

int main(int argc, char const *argv[])
{
    int n,a,b;
    while (cin>>n>>a>>b)
    {
        /* code */
        string s;
        vector<vector<char>> vec(n,vector<char>(n)); 
        for(int i=0;i<n;++i){
            cin>>s;
            for(int j=0;j<s.size();++j){
                vec[i][j]=s[j];
            }
        }
        cout<<2*a<<endl;
    }
    
    return 0;
}
